package com.cashmama.market.api.domain.vo.user.profile;

import com.cashmama.market.api.domain.enums.SocialTypeEnum;

import java.io.Serializable;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2020-04-28 15:24
 **/
public class AccessTokenDTO implements Serializable {
    private static final long serialVersionUID = -7330112252271170466L;

    /**
     * 社交网络 类型
     */
    private SocialTypeEnum socialTypeEnum;
    /**
     * 第三方的用户ID
     */
    private String openId;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * 令牌
     */
    private String accessToken;

    private String accessSecret;

    private String refreshToken;

    public SocialTypeEnum getSocialTypeEnum() {
        return socialTypeEnum;
    }

    public AccessTokenDTO setSocialTypeEnum(SocialTypeEnum socialTypeEnum) {
        this.socialTypeEnum = socialTypeEnum;
        return this;
    }

    public String getOpenId() {
        return openId;
    }

    public AccessTokenDTO setOpenId(String openId) {
        this.openId = openId;
        return this;
    }

    public String getMobile() {
        return mobile;
    }

    public AccessTokenDTO setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public AccessTokenDTO setAccessToken(String accessToken) {
        this.accessToken = accessToken;
        return this;
    }

    public String getAccessSecret() {
        return accessSecret;
    }

    public AccessTokenDTO setAccessSecret(String accessSecret) {
        this.accessSecret = accessSecret;
        return this;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public AccessTokenDTO setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
        return this;
    }
}
